import request from "@/utils/request"

//发送短信验证码
export function sendSmsCode(mobile, scene) { 
    const data = {
        mobile,
        scene
    }
    return request({
        url: "/loan/auth/send-sms-code",
        'method': "POST",
        'data': data
    })
}


//使用短信验证码登录
export function smsLogin(mobile, code) { 
    const data = {
        mobile, 
        code
    }
    return request({
        url: '/loan/auth/sms-login',
        method: "POST",
        data
    })
}

//刷新token数据
export function refreshToken(refreshToken) { 
    return request({
        url: "/loan/auth/refresh-token",
        method: "POST",
        data: {
            refreshToken,
        }
    })
}